package site.psvm.MyJunit;


import site.psvm.MyJunit.DefineAnnotation.MyAfter;
import site.psvm.MyJunit.DefineAnnotation.MyBefore;
import site.psvm.MyJunit.DefineAnnotation.MyTest;

public class Demo {
    @MyBefore
    public void init(){
        System.out.println("初始化程序");
    }

    @MyTest
    public void method1(){
        System.out.println("方法一 运行");
    }
    @MyTest
    public void method2(){
        System.out.println("方法二 运行");
    }
    @MyTest
    public void method3(){
        System.out.println("方法三 运行");
    }

    @MyAfter
    public void clear(){
        System.out.println("运行结束,清理缓存");
    }
}
